Skip to main content
Version: 8.4.12.1

AutoHedgeSymbol

V8 Message Definiton

AutoHedgeSymbol records are published by autohedge servers and contain all valid hedge target symbols. Execution engines reject auto-hedge requests for hedgeSecKeys that are not in this set.

METADATA

AttributeValue
Topic5290-strategy-autohedge
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
targetSecKey_atenum - AssetTypePRI'None'
targetSecKey_tsenum - TickerSrcPRI'None'
targetSecKey_tkVARCHAR(12)PRI''
targetSecKey_yrSMALLINT UNSIGNEDPRI0
targetSecKey_mnTINYINT UNSIGNEDPRI0
targetSecKey_dyTINYINT UNSIGNEDPRI0
targetSecTypeenum - SpdrKeyTypePRI'None'
hedgeTargetTypeenum - HedgeTargetTypePRI'None'
ticker_atenum - AssetType'None'Ticker
ticker_tsenum - TickerSrc'None'Ticker
ticker_tkVARCHAR(12)''Ticker
tickerDescTINYTEXT''Ticker Description
hedgeSecKey_atenum - AssetType'None'Execution Hedge SecKey
hedgeSecKey_tsenum - TickerSrc'None'Execution Hedge SecKey
hedgeSecKey_tkVARCHAR(12)''Execution Hedge SecKey
hedgeSecKey_yrSMALLINT UNSIGNED0Execution Hedge SecKey
hedgeSecKey_mnTINYINT UNSIGNED0Execution Hedge SecKey
hedgeSecKey_dyTINYINT UNSIGNED0Execution Hedge SecKey
hedgeSecTypeenum - SpdrKeyType'None'Execution Hedge SecType
earlySessionCloseDATETIME(6)'1900-01-01 00:00:00.000000'system time CST
regSessionCloseDATETIME(6)'1900-01-01 00:00:00.000000'system time CST
lateSessionCloseDATETIME(6)'1900-01-01 00:00:00.000000'system time CST
isHedgeSecOKenum - YesNo'None'
hedgeSecErrorTINYTEXT''
hedgeUMidPrcDOUBLE0current market midprice of the hedge instrument used to calculate approximate hedge sizes for preorder checks
timestampDATETIME(6)'1900-01-01 00:00:00.000000'SR system timestamp

PRIMARY KEY DEFINITION (Unique)

FieldSequence
targetSecKey_tk1
targetSecKey_yr2
targetSecKey_mn3
targetSecKey_dy4
targetSecKey_at5
targetSecKey_ts6
targetSecType7
hedgeTargetType8

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRTrade`.`MsgAutoHedgeSymbol` (
`targetSecKey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`targetSecKey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`targetSecKey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`targetSecKey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`targetSecKey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`targetSecKey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`targetSecType` ENUM('None','Stock','Future','Option','MLeg') NOT NULL DEFAULT 'None',
`hedgeTargetType` ENUM('None','Stock','Future','FrontMonth') NOT NULL DEFAULT 'None',
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'Ticker',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'Ticker',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'Ticker',
`tickerDesc` TINYTEXT NOT NULL DEFAULT '' COMMENT 'Ticker Description',
`hedgeSecKey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'Execution Hedge SecKey',
`hedgeSecKey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'Execution Hedge SecKey',
`hedgeSecKey_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'Execution Hedge SecKey',
`hedgeSecKey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Execution Hedge SecKey',
`hedgeSecKey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Execution Hedge SecKey',
`hedgeSecKey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Execution Hedge SecKey',
`hedgeSecType` ENUM('None','Stock','Future','Option','MLeg') NOT NULL DEFAULT 'None' COMMENT 'Execution Hedge SecType',
`earlySessionClose` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'system time (CST)',
`regSessionClose` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'system time (CST)',
`lateSessionClose` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'system time (CST)',
`isHedgeSecOK` ENUM('None','Yes','No') NOT NULL DEFAULT 'None',
`hedgeSecError` TINYTEXT NOT NULL DEFAULT '',
`hedgeUMidPrc` DOUBLE NOT NULL DEFAULT 0 COMMENT 'current market mid-price of the hedge instrument, used to calculate approximate hedge sizes for pre-order checks',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'SR system timestamp',
PRIMARY KEY USING HASH (`targetSecKey_tk`,`targetSecKey_yr`,`targetSecKey_mn`,`targetSecKey_dy`,`targetSecKey_at`,`targetSecKey_ts`,`targetSecType`,`hedgeTargetType`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='AutoHedgeSymbol records are published by autohedge servers and contain all valid hedge target symbols. Execution engines reject auto-hedge requests for hedgeSecKeys that are not in this set.';

SELECT TABLE EXAMPLE QUERY

SELECT
`targetSecKey_at`,
`targetSecKey_ts`,
`targetSecKey_tk`,
`targetSecKey_yr`,
`targetSecKey_mn`,
`targetSecKey_dy`,
`targetSecType`,
`hedgeTargetType`,
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`tickerDesc`,
`hedgeSecKey_at`,
`hedgeSecKey_ts`,
`hedgeSecKey_tk`,
`hedgeSecKey_yr`,
`hedgeSecKey_mn`,
`hedgeSecKey_dy`,
`hedgeSecType`,
`earlySessionClose`,
`regSessionClose`,
`lateSessionClose`,
`isHedgeSecOK`,
`hedgeSecError`,
`hedgeUMidPrc`,
`timestamp`
FROM `SRTrade`.`MsgAutoHedgeSymbol`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`targetSecKey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`targetSecKey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`targetSecKey_tk` = 'Example_targetSecKey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`targetSecKey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`targetSecKey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`targetSecKey_dy` = 1
AND
/* Replace with a ENUM('None','Stock','Future','Option','MLeg') */
`targetSecType` = 'None'
AND
/* Replace with a ENUM('None','Stock','Future','FrontMonth') */
`hedgeTargetType` = 'None';

Doc Columns Query

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='AutoHedgeSymbol' ORDER BY ordinal_position ASC;